package com.pk.platform.business.charge.service;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

import com.pk.platform.business.charge.vo.IncomeExpenseVO;
import com.pk.platform.domain.charge.IncomeExpense;
import com.pk.platform.domain.charge.IncomeExpenseIndex;
import com.pk.platform.domain.charge.IncomeExpenseLock;
import com.pk.platform.util.page.ListPage;
import com.pk.platform.util.page.Pager;

public interface IIncomeExpenseService {

	public List<Map<String, Object>> queryYearAgo(String kgId, String thisYear);
	
	public List<Map<String, Object>> queryLockMonth(String year, String kgId);
	
	public void addIncomeExpense(IncomeExpense ie);
	
	public void delIncomeExpense(String[] ids);
	
	public void updateIncomeExpense(IncomeExpense ie);
	
	public IncomeExpense queryIncomeExpenseById(String id);
	
	public void addLock(IncomeExpenseLock iel);

	public void delLock(String year, String month, String kgId);
	
	public List<IncomeExpenseIndex> queryIncomeExpenseIndexList(String type);
	
	public ListPage getReportList(IncomeExpenseVO ivo, Pager pager);
	
	public IncomeExpenseVO getTotalAmount(IncomeExpenseVO ivo);
	
	public InputStream getIndexExcelInputStream(IncomeExpenseVO ivo);
	
	public boolean existLock(String year, String month, String kgId);
}
